<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="collection.css">
</head>
<body>

<!--<input type="text" id="inpu" value="11">-->
<script src="collection.js"></script>

<script>

    var _id = document.getElementById('inpt');
    var obj = {
        hint: '提示',
        condition: '是否需要卸载？',
        leftText: '取消',
        rightText: '确认',
        successFn: function () {
            alert('是否取消卸载')
        },
        faillFn: function () {
            alert('确认要卸载吗？')
        }
    };
new Alert(obj);
//new AddAlert(obj);
//new ImgAlert({type:'loding'}).timer();

</script>
</body>

</html>